package com.wframe.framework.util;


import org.apache.commons.lang.StringUtils;

import com.wframe.framework.spring.SpringContextHolder;

public class UploadUtil {
	
	private String upserver;//B2B平台外网访问地址
	private String downserver;//文件下载服务地址
	private String cdnserver;//CDN服务器列表，多个地址用 ; （分号）隔开

	public static UploadUtil getConfig(){
		return SpringContextHolder.getBean("uploadUtil");
	}

	public String getDownserver() {
		return downserver;
	}

	public void setDownserver(String downserver) {
		if(StringUtils.isNotBlank(downserver) && !downserver.endsWith("/"))downserver+="/";
		this.downserver = downserver;
	}

	public String getUpserver() {
		return upserver;
	}

	public void setUpserver(String upserver) {
		this.upserver = upserver;
	}

	public String getCdnserver() {
		return cdnserver;
	}

	public void setCdnserver(String cdnserver) {
		this.cdnserver = cdnserver;
	}
}
